package cn.wolfcode.p2p.base.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class LoginInfo extends BaseDomain {

    public static final int STATE_NORMAL = 0;//正常状态

    public static final int STATE_lOCK = 1;//锁定状态

    public static final int USERTYPE_NOMAL = 0;//前端用户

    public static final int USERTYPE_ADMIN = 1;//后台管理员

    public static final int ISAUDITOR_YES = 1;//是视频预约客服

    public static final int ISAUDITOR_NO = 0;//不是视频预约客服

    private String username;//用户名

    private String password;//密码

    private int state = STATE_NORMAL;//用户的状态

    private int missNumber; //密码错误次数

    private Date missTime;//连续三次密码错误的记录时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date allowTime;//允许解冻当前账号的时间

    private int userType;//判断前台用户还是后台管理员

    private int isAuditor;//判断是否是视频预约客服 0 -> 不是 1 -> 是
}